package day03am;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * @author JokerQ
 * @date 2020/8/25 - 13:03
 */
public class Server_v4 {
    public static void main(String[] args) {
        try {
            System.out.println("服务端启动！！！");
            ServerSocket serverSocket = new ServerSocket(8888);
            Socket socket = serverSocket.accept();
            System.out.println("一个客户端连接了...");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

